﻿using DevExpress.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using 聚欣订单分析.Ling;

namespace 聚欣订单分析.Borrow
{
    public partial class BorrowMoney : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void detailGrid_BeforePerformDataSelect(object sender, EventArgs e)
        {
            Session["CustomerID"] = (sender as ASPxGridView).GetMasterRowKeyValue();
        }

        protected void detailGrid_RowValidating(object sender, DevExpress.Web.Data.ASPxDataValidationEventArgs e)
        {
            if (e.NewValues["金额"] == null)
            {
                e.RowError = "金额不能为空！";
                return;
            }
        }
    }
}